// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()
const DB = cloud.database().collection("new_menber")
// 云函数入口函数
exports.main = async (event, context) => {
  try {
    return await DB.where({
      new_success: 'y'
    }).get()
  } catch (e) {
    console.error(e)
  }
}